﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace IRCBot
{
    public class Program
    {
        public static void Main(string[] args)
        {
            ClientConfiguration configuration = CreateConfiguartion();
            Client client = new Client(configuration, "#sketchdaily"); // FIX - move this to config
            Console.WriteLine("Bot quit/crashed");
            Console.ReadLine();
        }

        private static ClientConfiguration CreateConfiguartion()
        {
            ClientConfiguration configuration = new ClientConfiguration();
            configuration.Name = ConfigurationManager.AppSettings["Name"];
            configuration.Nick = ConfigurationManager.AppSettings["Nick"];
            configuration.SecondChoiceNick = "Derpbot";
            configuration.Server = ConfigurationManager.AppSettings["Server"];
            configuration.Port = int.Parse(ConfigurationManager.AppSettings["Port"]);

            return configuration;
        }
    }
}
